#!/bin/sh
echo 'import data from hdfs。。。'
currDate=`date +%Y%m%d`
/opt/lagou/servers/hive-2.3.7/bin/hive -e "USE mydb;LOAD DATA INPATH '/user_clicks/20210909/clicklog.dat' OVERWRITE INTO TABLE user_clicks PARTITION (dt='$currDate');"
 